package cn.dxh.stagefinal.service;

import cn.dxh.stagefinal.bean.CommBrand;
import cn.dxh.stagefinal.bean.CommType;
import cn.dxh.stagefinal.bean.Commodity;
import cn.dxh.stagefinal.bean.SalesChannel;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 2019/12/10 9:07
 *
 * @author Wenhao Lee
 * 心向远方，不负厚望。
 */
public interface CommodityService {
    PageInfo<Commodity> findCommodity(Integer pageIndex, String commName, Integer commBrand, Integer commType, Integer state);

    Commodity findCommById(Integer id);

    int updateComm(Commodity commodity, List<Integer> channelIds);

    List<SalesChannel> findAllChannel();

    PageInfo<SalesChannel> findSalesChannel(Integer pageIndex, String channelName);

    int deleteChannel(Integer channelId);

    int addChannel(SalesChannel channel);

    int addComm(Commodity commodity, List<Integer> channelIds);

    String exportToExcel(List<Integer> ids);

    List<CommType> findAllType();

    List<CommBrand> findAllBrand();

}
